@extends('layouts.admin')
@push('morecss')
@endpush

@push('morescript')
    <script type="application/javascript">
        let page_params = {
            @can('admin.wxautoreply.index')
            url_list: '{{ route('admin.wxautoreply.index') }}',
            @endcan
            @can('admin.wxautoreply.create')
            url_add: '{{ route('admin.wxautoreply.create') }}',
            @endcan
            @can('admin.wxautoreply.update')
            url_edit: '{{ route('admin.wxautoreply.update') }}',
            @endcan
            @can('admin.wxautoreply.destroy')
            url_del: '{{ route('admin.wxautoreply.destroy') }}',
            @endcan
        }
    </script>
    <!-- require page js -->
    <script src="{{ mix('js/admin/wxautoreply_index.js') }}"></script>
@endpush
@section('content')
    <div class="wrapper wrapper-content animated fadeInRight ecommerce">
        <div class="ibox-content m-b-sm border-bottom">
            <div class="row">
                <div class="col-sm-12">
                    主要使用场景： 设置指定关键词回复特定的内容，用于常用的关键字处理，但设计到业务交互的关键字需特殊处理，需定制开发。
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label" for="keyword">关键字</label>
                        <input type="text" id="keyword" name="keyword" value="" placeholder="请输入搜索关键字"
                               class="form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <label class="control-label" for="product_name">&nbsp;&nbsp;</label>
                        <div>
                            <button class="btn btn-primary" type="button" id="btn-search"><i class="fa fa-search"></i>
                                搜索
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="toolbar" class="col-sm-2">
            @can('admin.wxautoreply.create')
            <a class="btn btn-primary" href="{{ route('admin.wxautoreply.create') }}"><i class="fa fa-plus"></i> 添加关键字</a>
            @endcan
        </div>
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <table id="table" data-classes="table table-no-bordered">
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection